package ms.maplestory.boot.configs;

import ms.maplestory.boot.bootstrap.core.YamlPropertySourceFactory;
import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.List;

@Data
@ToString
@Component
@PropertySource(
        value = "classpath:server.yml",
        ignoreResourceNotFound = true,
        factory = YamlPropertySourceFactory.class)
@ConfigurationProperties(prefix = "maplestory")
public class ServerConfig {

    private List<BalloonConfig> balloons;
    private List<WorldConfig> worlds;


}